

export function delayer (fun,time){
    if (time== undefined) time=500;
    let key=fun+''
    if(!window[key]){
        window[key]={}
    }
    if (window[key].delayer_t!= null){
        clearTimeout(window[key].delayer_t);
        window[key].delayer_t= null ;
    }
    window[key].delayer_t=setTimeout( function (){
        fun.apply(fun);
    },time);
}
